/*
 * Street.java
 *
 * Created on March 2, 2007, 8:50 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package ge.info.domain;

import ge.ktapestry.propertyselections.IComboItem;
import ge.ktools.StringUtils;
import java.util.List;

/**
 * @author Administrator
 */
public class Street implements IComboItem, java.io.Serializable
{

    /**
     * Creates a new instance of Street
     */
    private int streetID;
    private Integer cityID;
    private String streetName;
    private String location;
    private String oldName;
    private String streetIndex;
    private String streetDistrict;
//    private List<String> streetNames;
    
    public Street()
    {
    }

    @Override
    public boolean equals(Object o)
    {
        if (!(o instanceof Street))
        {
            return false;
        }
        return this.getStreetID() == (((Street) o).getStreetID());
    }

    public String getUniqueID()
    {
        return String.valueOf(streetID);
    }

    public String getDisplayName()
    {
        return streetName;
    }

    public int getStreetID()
    {
        return streetID;
    }
    public void setStreetID(int streetID)
    {
        this.streetID = streetID;
    }
    public String getStreetName()
    {
        return streetName;
    }
    public void setStreetName(String streetName)
    {
        this.streetName = streetName;
    }
    public Integer getCityID()
    {
        return cityID;
    }
    public void setCityID(Integer cityID)
    {
        this.cityID = cityID;
    }
    public String getLocation()
    {
        return location;
    }
    public void setLocation(String location)
    {
        this.location = location;
    }
    public String getOldName()
    {
        return oldName;
    }
    public void setOldName(String oldName)
    {
        this.oldName = oldName;
    }
    
     public String getStreetIndex()
    {
        return streetIndex;
    }
    public void setStreetIndex(String streetIndex)
    {
        this.streetIndex = streetIndex;
    }
    
     public String getStreetDistrict()
    {
        return streetDistrict;
    }
    public void setStreetDistrict(String streetDistrict)
    {
        this.streetDistrict = streetDistrict;
    }
    
    public List<String> getStreetNames()
    {
        return StringUtils.splitString(streetName);
    }    
}
